package com.mar.meclient.bt;

import java.io.IOException;

import javax.bluetooth.BluetoothStateException;

public interface IBluetoothConnectionHandler {

	/**
	 * Search for devices
	 * @throws BluetoothStateException
	 */
	void startInquiry(BTInquiryListener btIquiryListenerr)
			throws BluetoothStateException;

	/**
	 * Stop search.
	 * @throws BluetoothStateException
	 */
	void stopInquiry() throws BluetoothStateException;

	/**
	 * Long running operation.
	 * @param remoteDevice
	 * @param communicationLstnr
	 * @return
	 * @throws IOException 
	 * @throws BluetoothStateException
	 */
	IBluetoothIOHandler connectTo(String remoteDevice)
			throws IOException, BluetoothStateException;

}